$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;

.home {
  position: relative;
  width: 100%;

  .banner {
    width: 100%;
    position: relative;
    max-height: 100vh;
    overflow: hidden;
    .bg {
      width: 100%;
      
      img {
        width: 100%;
        display: block;
        object-fit: cover;
        max-height: 100vh;
      }
    }

    .text {
      position: absolute;
      left: 0;
      top: 50%;
      width: 100%;
      text-align: center;
      transform: translateY(-50%);

      .t {
        color: #FFF;
        font-size: $fontSize_100;
        font-weight: 600;
        font-style: italic;
        margin: 5vw 0;
      }

      a {
        font-size: $fontSize_18;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        display: inline-block;
        border: 1px solid white;
        padding: 1vw 2vw;
        transform: skewX(-5deg);
        border-radius: 5px;
        transition: all 600ms;

        p {
          transform: skewX(5deg);
        }

        &:hover {
          background-color: #C8161E;
          color: white;
          border-color: #C8161E;
        }
      }
    }
  }

  .section1 {
    width: 80vw;
    margin: 5vw auto;
    text-align: center;
    position: relative;

    .t {
      font-size: $fontSize_48;
      font-weight: 700;
      text-transform: uppercase;
    }

    .des {
      color: #454545;
      font-size: $fontSize_32;
      font-weight: 600;
      margin: 2vw auto;
    }

    .lp {
      color: rgba(69, 69, 69, 0.08);
      position: absolute;
      left: 5vw;
      top: -1vw;
      font-size: 7.5vw;
      font-weight: 600;
    }

    .rp {
      color: rgba(69, 69, 69, 0.08);
      position: absolute;
      right: 0;
      bottom: -3vw;
      font-size: 7.5vw;
      font-weight: 600;
    }
  }

  .section2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: #000;

    .item {
      width: 35%;
      position: relative;

      .bg {
        width: 100%;
        overflow: hidden;

        img {
          width: 100%;
          display: block;
          object-fit: cover;
          transition: all 600ms;
        }
      }

      .text {
        position: absolute;
        left: 5%;
        width: 90%;
        text-align: center;
        top: 50%;
        transform: translateY(-50%);

        .p1 {
          color: #FFF;
          font-size: $fontSize_40;
          font-weight: 700;
          text-transform: uppercase;
          height: 5vw;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .p2 {
          color: #FFF;
          font-size: $fontSize_32;
          font-weight: 500;
          margin: 3vw 0;
          text-transform: uppercase;
        }

        a {
          font-size: $fontSize_24;
          font-weight: 700;
          color: white;
          text-transform: uppercase;
          display: inline-block;
          border: 1px solid white;
          padding: 1vw 2vw;
          transform: skewX(-5deg);
          border-radius: 5px;
          transition: all 600ms;

          p {
            transform: skewX(5deg);
          }
        }
      }

      &:hover {
        .bg {
          img {
            transform: scale(1.05);
          }
        }

        .text {
          a {
            background-color: #C8161E;
            color: white;
            border-color: #C8161E;
          }
        }
      }
    }
  }

  .section3 {
    width: 100%;
    position: relative;

    .bg {
      width: 100%;
      overflow: hidden;

      img {
        width: 100%;
        display: block;
        object-fit: cover;
        transition: all 600ms;
      }
    }

    .text {
      position: absolute;
      left: 5%;
      width: 90%;
      text-align: center;
      top: 50%;
      transform: translateY(-50%);

      .p1 {
        color: #FFF;
        font-size: $fontSize_40;
        font-weight: 700;
        text-transform: uppercase;
      }

      .p2 {
        color: #FFF;
        font-size: $fontSize_32;
        font-weight: 500;
        margin: 2vw 0;
        text-transform: uppercase;
      }

      a {
        font-size: $fontSize_24;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        display: inline-block;
        border: 1px solid white;
        padding: 1vw 2vw;
        transform: skewX(-5deg);
        border-radius: 5px;
        transition: all 600ms;
      }
    }

    &:hover {
      .bg {
        img {
          transform: scale(1.05);
        }
      }

      .text {
        a {
          background-color: #C8161E;
          color: white;
          border-color: #C8161E;
        }
      }
    }
  }

  .section4 {
    width: 80vw;
    margin: 4vw auto;
    text-align: center;
    color: #333;
    font-size: $fontSize_70;
    font-weight: 600;
  }

  .section5 {
    width: 100%;

    .pic {
      width: 100%;
      background-image: url(../images/h5.png);
      background-repeat: no-repeat;
      background-attachment: fixed;
      height: 600px;
      background-size: cover;
      background-position: center;
    }

    .txts {
      width: 100%;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;

      .item {
        width: 50%;
        padding: 6vw 0;
        position: relative;
        overflow: hidden;

        .p1 {
          color: #FFF;
          font-size: $fontSize_64;
          font-weight: 700;
          text-transform: uppercase;
          text-align: center;
        }

        .des {
          color: #FFF;
          font-size: $fontSize_28;
          width: 80%;
          margin: 4vw auto;
          text-align: center;
          line-height: 1.5;
        }

        img {
          width: 100%;
          display: block;
          height: 100%;
          object-fit: cover;
          position: absolute;
          left: 0;
          top: 0;
          transition: all 600ms;
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }

      .item:first-child {
        background: #3E3F2F;
      }

      .item:nth-child(2) {
        background: #D2092B;
      }

      .item:nth-child(3) {
        background: #18191D;
      }
    }
  }

  .section6 {
    background: #3E3F2F;
    padding: 8vw 0;
    position: relative;
    .text {
      margin-left: 5vw;
      color: white;

      .p1 {
        font-size: $fontSize_64;
        text-transform: uppercase;
        font-weight: 600;
      }

      .p2 {
        color: rgba(255, 255, 255, 0.47);
        font-size: $fontSize_40;
        font-weight: 500;
        margin: 2vw 0 3vw 0;
        text-transform: uppercase;
      }

      .des {
        color: #FFF;
        font-size: $fontSize_24;
        width: 20vw;
        line-height: 1.5;
      }

      a {
        font-size: $fontSize_16;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        background-color: #C8161E;
        display: inline-block;
        padding: 1vw 2vw;
        transform: skewX(-5deg);
        border-radius: 5px;
        transition: all 600ms;
        margin-top: 4vw;

        p {
          transform: skewX(5deg);
        }
        &:hover{
          background-color: rgba(210, 9, 43, .8);
        }
      }
    }
    .pros{
      position: absolute;
      right: 0;
      top:2vw;
      width: 65vw;
      .swiper-container{
        width: 100%;
        .swiper-wrapper{
          .swiper-slide{
            .pic{
              width: 100%;
              img{
                width: 100%;
                object-fit: contain;
                max-height:40vw;
              }
            }
          }
        }
      }
      .prev{
        position: absolute;
        left: 5%;
        top:50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 10;
      }
      .next{
        position: absolute;
        right: 5%;
        top:50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 10;
      }
    }
  }

  .section7 {
    width: 100%;
    margin: 5vw 0;

    .d1 {
      display: flex;
      justify-content: space-between;

      .pic {
        width: 65%;
        overflow: hidden;
        background-color: #000;

        img {
          width: 100%;
          display: block;
          object-fit: cover;
          transition: all 600ms;
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }

      .r {
        width: 35%;
        background: #3E3F2F;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;

        .p1 {
          color: #FFF;
          font-size: $fontSize_40;
        }

        .des {
          color: #FFF;
          font-size: $fontSize_16;
          width: 70%;
          margin: 2vw auto;
          line-height: 1.5;
        }

        a {
          font-size: $fontSize_16;
          font-weight: 700;
          color: white;
          text-transform: uppercase;
          background-color: #C8161E;
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 1vw 3vw;
          transform: skewX(-5deg);
          border-radius: 5px;
          transition: all 600ms;

          p {
            transform: skewX(5deg);
          }

          svg {
            margin-left: 20px;
            display: block;
          }
          &:hover{
            background-color: rgba(210, 9, 43, .8);
          }
        }
      }
    }

    .d2 {
      width: 100%;
      display: flex;
      justify-content: space-between;

      .item {
        width: 50%;
        position: relative;

        .bg {
          width: 100%;
          overflow: hidden;

          img {
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
        }

        .text {
          position: absolute;
          left: 5%;
          top: 50%;
          transform: translateY(-50%);
          z-index: 10;
          width: 50%;
          color: white;

          .p1 {
            font-size: $fontSize_48;
            font-weight: 600;
          }

          .des {
            font-size: $fontSize_24;
            line-height: 1.4;
            margin: 1.5vw 0;
          }

          a {
            font-size: $fontSize_16;
            font-weight: 700;
            color: white;
            text-transform: uppercase;
            background-color: #C8161E;
            display: inline-block;
            padding: 1vw 2vw;
            transform: skewX(-5deg);
            border-radius: 5px;
            transition: all 600ms;

            p {
              transform: skewX(5deg);
            }
            &:hover{
              background-color: rgba(210, 9, 43, .8);
            }
          }
        }

        &:hover {
          .bg {
            img {
              transform: scale(1.05);
            }
          }
        }
      }
    }
  }

  .section_bg {
    position: relative;
    max-height: 100vh;
    overflow: hidden;
    .bg {
      width: 100%;

      img {
        width: 100%;
        display: block;
        object-fit: cover;
        max-height: 100vh;
      }
    }

    .text {
      position: absolute;
      left: 0;
      top: 50%;
      width: 100%;
      text-align: center;
      transform: translateY(-50%);

      .p1 {
        -webkit-text-stroke: 1px white;
        color: transparent;
        font-size: 8vw;
        font-weight: 400;
        font-style: italic;
        color: transparent;
        margin-bottom: 4vw;
      }

      a {
        font-size: $fontSize_18;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        display: inline-block;
        border: 1px solid white;
        padding: 1vw 2vw;
        transform: skewX(-5deg);
        border-radius: 5px;
        transition: all 600ms;

        p {
          transform: skewX(5deg);
        }

        &:hover {
          background-color: #C8161E;
          color: white;
          border-color: #C8161E;
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .bg{
        img{
          height: 100vh;
        }
      }
      .text{
        .logo{
          img{
            width: 80px;
          }
        }
        .t{
          font-size: 20px;
          margin: 30px 0;
        }
        a{
          font-size: 14px;
          padding: 5px 10px;
        }
      }
    }
    .section1{
      width: 90%;
      margin: 30px auto;
      .lp{
        font-size: 40px;
        left: 0;
      }
      .rp{
        font-size: 40px;
      }
      .t{
        font-size: 18px;
      }
      .des{
        font-size: 12px;
        line-height: 1.6;
      }
    }
    .section2{
      width: 100%;
      flex-direction: column;
      .item{
        width: 100%;
        .text{
          .p1{
            font-size: 24px;
            height:60px;
          }
          .p2{
            font-size: 18px;
            margin: 20px 0;
          }
          a{
            font-size: 14px;
            padding: 5px 10px;
          }
        }
      }
    }
    .section3{
      .bg{
        img{
          height:300px;
        }
      }
      .text{
        .p1{
          font-size: 24px;
        }
        .p2{
          font-size: 18px;
          margin: 20px 0;
        }
        a{
          font-size: 14px;
          padding: 5px 10px;
        }
      }
    }
    .section4{
      width: 90%;
      margin: 30px auto;
      font-size: 18px;
    }
    .section5{
      .pic{
        height:200px;
      }
      .txts{
        .item{
          width: 100%;
          padding: 40px 0;
          .p1{
            font-size: 18px;
          }
          .des{
            font-size: 14px;
          }
        }
        .item:last-child{
          height: 120px;
        }
      }
    }
    .section6{
      padding: 40px 0;
      .text{
        .p1{
          font-size: 24px;
        }
        .p2{
          font-size: 18px;
          margin: 20px 0;
        }
        .des{
          font-size: 14px;
          width: 60%;
        }
        a{
          font-size: 14px;
          padding: 5px 10px;
        }
      }
      .pros{
        position: relative;
        width: 100%;
        margin: 30px 0;
      }
    }
    .section7{
      .d1{
        flex-direction: column;
        .pic{
          width: 100%;
        }
        .r{
          width: 100%;
          padding: 30px 0;
          .p1{
            font-size: 20px;
          }
          .des{
            font-size: 14px;
            width: 90%;
            margin: 20px auto;
          }
          a{
            font-size: 14px;
            padding: 5px 10px;
          }
        }
      }
      .d2{
        flex-direction: column;
        .item{
          width: 100%;
          .bg{
            img{
              min-height:200px;
            }
          }
          .text{
            width: 90%;
            .p1{
              font-size: 20px;
            }
            .des{
              font-size: 14px;
              width:70%;
              margin: 10px 0;
            }
            a{
              font-size: 14px;
              padding: 5px 10px;
            }
          }
        }
      }
    }
    .section_bg{
      .bg{
        img{
          height: 100vh;
        }
      }
      .text{
        .p1{
          margin-bottom: 40px;
          font-size: 30px;
        }
        a{
          font-size: 14px;
          padding: 5px 10px;
        }
      }
    }
  }
}